package com.geelou.crossapp.util;

import android.util.Log;

/**
 * 写日志
 * @author Administrator
 *
 */
public class LogUtil {	
	public final static int DEBUG = 0;
	public final static int INFO = 100;
	public final static int ERROR = 300;
	
	private static int logLevel = DEBUG;
	private static String TAG = "guodonglife";
	
	public static void debug(String message){
		if(logLevel <= DEBUG){
			Log.d(TAG,message);
		}
	}
	
	public static void debug(String tag,String message){
		if(logLevel <= DEBUG){
			Log.d(tag,message);
		}
	}
	
	public static void info(String message){
		if(logLevel <= INFO){
			Log.i(TAG,message);
		}
	}
	
	public static void error(String message){
		if(logLevel <= ERROR){
			Log.e(TAG,message);
		}
	}
}
